<?php


namespace App\Provider;


use App\Service\JwtAuth;
use EchoPHP\Foundation\ServiceProvider;

class JwtAuthServiceProvider extends ServiceProvider {
    protected $defer = true;

    public function register() {
        $this->app->singleton('jwtauth', function () {
            return new JwtAuth();
        });
    }

    public function provides() {
        return ['jwtauth'];
    }
}